/*
 * Eugen Stoian <stoian.e@gmail.com> 2010
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef PARAMETRIC3DFRAME_H
#define PARAMETRIC3DFRAME_H

#include <QtGui/QFrame>

namespace Ui {
    class Parametric3DFrame;
}
class ParametricObject3D;
class Parametric3DFrame : public QFrame {
    Q_OBJECT
public:
    Parametric3DFrame(QWidget *parent = 0);
    ~Parametric3DFrame();
    bool isModified() const;
public slots:
    void apply();
    void revert();
    void draw();
    void setObject(ParametricObject3D* object);
protected slots:
    void enableButtons(bool ok);
protected:
    void changeEvent(QEvent *e);

private:
    Ui::Parametric3DFrame *m_ui;
};

#endif // PARAMETRIC3DFRAME_H
